package com.jack.base;

import com.google.common.collect.Lists;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Created by zhang_j on 2019/12/9
 */
public class tEST {
    public static void main(String[] args) throws ParseException {
        List<Player> lsit = Lists.newArrayList(new Player());
        lsit.stream().filter(t->t.getName().equalsIgnoreCase("1")).collect(Collectors.toList());
        System.out.println(lsit);
//       Integer num = 0;
//       foo(num);
//       System.out.println(num.equals(0));
//
//       Player player = new Player();
//       player.setName("jack");
//       test(player);
//        System.out.println(player.getName());

    }

    private static void test(Player player){
        player.setName("test");
        System.out.println(player.getName());
    }

    private static void foo(Integer num){
        num++;
        System.out.println(num.equals(0));
    }
}

class Player{
    String name;
    Player(){}

    public String getName(){
        return this.name;
    }
    public void setName(String name){
        this.name = name;
    }
}
